package org.example.entity;

import javax.persistence.Basic;
import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@MappedSuperclass
public abstract class AbstractCodeModel extends AbstractModel
{
  private String code;

  @Basic(optional = false)
  @Column(nullable = false, name = "code")
  @NotNull
  public String getCode()
  {
    return code;
  }

  public void setCode(String code)
  {
    this.code = code;
  }
  
}
